using System;
namespace RBAC.Read.Api.Application.Dto.ERP.SalesManagement.H
{
    /// <summary>
    /// 发货通知单所有数据（联查结果行）
    /// </summary>
    public class DeliveryNoticeAllDataDto
    {
        // 主键（Delivery_notice.Id）
        public long Id { get; set; }
        // 单据（Delivery_notice）
        public long DeliveryNoticeId { get; set; }
        public string? BillCode { get; set; }
        public string? SalesOrderCode { get; set; }
        public string? CustomerName { get; set; }
        public string? SalesmanName { get; set; }
        public string? WarehouseName { get; set; }
        public string? Receiver { get; set; }
        public string? Phone { get; set; }
        public string? Address { get; set; }
        public string? BizType { get; set; }
        public int? Status { get; set; }
        public string? StatusDescription { get; set; }
        public DateTime? BillDate { get; set; }
        public DateTime? DeliveryDate { get; set; }
        public string? Remark { get; set; }
        public long? AuditUserId { get; set; }
        public DateTime? AuditTime { get; set; }

        // 明细（Delivery_notice_item）
        public long? DeliveryNoticeItemId { get; set; }
        public long? MaterialId { get; set; }
        public string? MaterialCode { get; set; }
        public string? MaterialName { get; set; }
        public string? Unit { get; set; }
        public decimal? Qty { get; set; }
        public decimal? PackageQty { get; set; }
        public string? BatchNo { get; set; }

        // 销售订单与明细（SalesOrder, SalesOrderDetail）
        public long? SalesOrderId { get; set; }
        public long? SalesOrderDetailId { get; set; }
        public decimal? SalesOrderQty { get; set; }
        public decimal? SalesOrderPrice { get; set; }
        public decimal? SalesOrderAmount { get; set; }

        // 物料（Mater）与分类（MaterType）
        public string? MaterModelSpec { get; set; }
        public string? MaterTypeName { get; set; }
        public string? MaterTypeCode { get; set; }
    }
}
